package vn.nt.healthcare.server.ws.service.impl;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import vn.nt.healthcare.server.ws.domain.Session;
import vn.nt.healthcare.server.ws.repositories.SessionRepository;
import vn.nt.healthcare.server.ws.service.SessionService;

@Service("sessionService")
@Transactional
public class SessionServiceImpl implements SessionService, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2155584095336340333L;

	@Autowired
	private SessionRepository sessionRepository;
	
	@Override
	public Session findBySid(String sid) {
		return sessionRepository.findBySid(sid);
	}

}
